Filter hook 'option_page_capability_{$option_page}'

in WP Core File wp-admin/options.php at line 46

Description

Filters the capability required when using the Settings API. By default, the options groups for all registered settings require the manage_options capability. This filter is required to change the capability required for a certain options page.

Occurrences

Filename Line Number
wp-admin/options.php 46

Parameters

Type Name Description
string $capability The capability used for the page, which is manage_options by default.

PHP Doc

/**
	 * Filters the capability required when using the Settings API.
	 *
	 * By default, the options groups for all registered settings require the manage_options capability.
	 * This filter is required to change the capability required for a certain options page.
	 *
	 * @since 3.2.0
	 *
	 * @param string $capability The capability used for the page, which is manage_options by default.
	 */